pushd `dirname $0`
cd ..
sudo docker build --tag backupper ./docker/backupper
sudo docker run -t --volume $(pwd):/data backupper tar --exclude /data/ignition/*.qcow2 --exclude /data/ignition/*.qcow2.xz --exclude /data/ignition/*.gz --exclude /data/archives/* --transform s/data/server-backup/ -cvzf /data/archives/$(date +%Y-%h-%d-%H%M).tar.gz /data
popd
